package Code.Port.Demo;

public class Test {
    public static void main(String[] args) {

        Dog dog = new Dog("小白",3);
        dog.eat();
        dog.swimming();

        Flog flog = new Flog("小青",1);
        flog.eat();
        flog.swimming();

        Rabbit rabbit = new Rabbit("小黑",1);
        rabbit.eat();

    }
}
